package com.gxnzd.communityelderly.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gxnzd.communityelderly.dao.DrugLibraryList;
import com.gxnzd.communityelderly.entity.DrugLibrary;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 23234
* @description 针对表【drug_library】的数据库操作Mapper
* @createDate 2024-10-22 20:44:25
* @Entity com.gxnzd.communityelderly.entity.DrugLibrary
*/
@Mapper
public interface DrugLibraryMapper extends BaseMapper<DrugLibrary> {
    IPage<DrugLibrary> selectDrugLiberList(@Param("communityId") Long communityId,
                                           @Param("drugsId") Long drugsId,
                                           @Param("page") Page<DrugLibrary> page);

    List<DrugLibraryList> selectKeyWordList(@Param("drugsName") String drugsName
            , @Param("communityId") Long communityId);
}




